home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
ZMD6112B.ARJ
/
ZMDTEST.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1992-07-05
|
1KB
|
45 lines
Uses Dos,Crt,FosCom,ZMD6;
var
ich,ch : char;
tempstring : string;
doexit : boolean;
begin
doexit:=false;
clrscr;
ch:=#0;
Z_SRPort:=1; { Set the serial port }
Z_SRBaud:=2400; { baud }
Z_ReceivePath:='\file\'; { path for receiving files }
Fos_Parms(Z_SRPort,Z_SRBaud,8,'N',1);
Fos_Init(Z_SRPort);
repeat
while Fos_Avail(Z_SRPort) do begin
ich:=Fos_Receive(Z_SRPort);
Fos_Ansi(ich);
end;
if keypressed then begin
ch:=readkey;
if ch <> #0 then begin
Fos_Write(Z_SRPort,ch);
end else begin
ch:=readkey;
if ch=#19 {Alt-R} then begin
Z_GetFiles; { Get those files }
end;
if ch=#31 {Alt-S} then begin
writeln;
write('File: ');
readln(tempstring);
Z_Files^[1].Name:=tempstring; { Set the file name }
Z_SendFiles(1); { Send it }
end;
if ch=#45 {Alt-X} then begin
doexit:=true; { Adios pinheads }
end;
end;
end;
until doexit;
Fos_Close(Z_SRPort);
end.